recipe(google/owlv2-base-patch16-ensemble): add zero-shot-object-detection recipes#1088
Merged
Merged
Conversation
codykk
marked this pull request as ready for review
July 10, 2026 07:52
codykk
force-pushed
the
yongyue/add-owlv2-base-patch16-ensemble
branch
3 times, most recently
from
July 16, 2026 02:28
2bf8276 to
b2fa39a
Compare
ssss141414
approved these changes
Jul 16, 2026
…e-patch16-ensemble Recipe-only contribution. Adds fp32 and fp16 recipe configs for google/owlv2-base-patch16-ensemble (Owlv2ForObjectDetection) on two verified EP/device combinations: cpu/cpu and dml/gpu. Recipes added: - examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp32_config.json - examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp16_config.json - examples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp32_config.json - examples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp16_config.json Goal ladder (verified on local hardware): - L0 (build): PASS on all 4 configs - L1 (perf): - cpu/cpu fp32: 1615ms avg, 0.62 samples/s - cpu/cpu fp16: 1621ms avg, 0.62 samples/s, 293MB (50% size reduction) - dml/gpu fp32: 1088ms avg, 0.92 samples/s (1.5x vs cpu) - dml/gpu fp16: 1103ms avg, 0.91 samples/s
codykk
force-pushed
the
yongyue/add-owlv2-base-patch16-ensemble
branch
from
July 16, 2026 03:58
b2fa39a to
ff43fc5
Compare
codykk
enabled auto-merge (squash)
July 16, 2026 03:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Recipe-only contribution (Effort L0). Adds fp32 and fp16 recipe configs for
google/owlv2-base-patch16-ensemble (
Owlv2ForObjectDetection, taskzero-shot-object-detection)on two verified EP/device combinations: CPU and DML (GPU). Goal L1 (perf) PASS on all 4 configs.
1. Recipe path(s)
examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp32_config.jsonexamples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp16_config.jsonexamples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp32_config.jsonexamples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp16_config.json2. README row
N/A — README not modified in this PR. The model has not yet passed fp16 eval on all 10 (EP, device) buckets; only cpu/cpu and dml/gpu are verified.
3. Build output dir
temp/owlv2_cpu_fp32/(cpu/cpu fp32)temp/owlv2_cpu_fp16/(cpu/cpu fp16)temp/owlv2_dml_fp32/(dml/gpu fp32)temp/owlv2_dml_fp16/(dml/gpu fp16)4. Build log
All 4 configs completed successfully:
✅ Build complete in 46.4s(Export 24.0s, Optimize 21.7s)✅ Build complete in 51.6s(Export 23.3s, Optimize 22.6s, FP16 5.1s)✅ Build complete in 47.2s(Export 23.9s, Optimize 22.6s)✅ Build complete in 46.2s(Export 23.2s, Optimize 22.3s)Note: Einsum op in
class_headtriggersOpUnsupportedErrorduring optimize analysis but does not block the build.5. Appended findings
N/A — no
model_knowledge/orskill_meta/entries added (recipe-only L0 contribution; skill repo is separate from this working repo).6. Optimum-coverage probe
N/A —
owlv2architecture is already supported by HuggingFace transformers. No custom OnnxConfig was needed.7. Claimed (Effort, Goal, Outcome)
8. Goal-ladder verdict table
winml buildwinml perf(see item 10)9. Methodology-evolution declaration
No methodology friction observed during this contribution.
10. Perf & eval data
Model size: fp32 = 585.55 MB (export); fp16 = 293.0 MB (quantized, 50% size reduction).
11. Component / op-level data
From
winml analyze(post-optimization):gelu_fusion,matmul_add_fusion(autoconf converged in 2 iterations, 1007 → 1025 nodes)temp/owlv2_cpu_fp32/analyze_result.json12. Reproducible commands